import os
import glob

os.chdir("D:/conda/envs/sll99/Lib/site-packages/labelme/cli")
# d:\program\anaconda\lib\site-packages
path1 = r"activate sll99"
os.system(path1)

json_file = r'D:/images_rectify/data_making_9_2/00mm/00mm/data/right/json'  # 文件路径
json_list = glob.glob("%s/*.json" % (json_file))
for i in json_list:
    path11 = r"python json_to_dataset.py "
    path22 = path11 + i
    os.system(path22)
